package com.prs.crm.service.hr.impl;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import com.prs.crm.dao.hr.CheckPlanDao;
import com.prs.crm.domain.hr.CheckPlan;
import com.prs.crm.domain.hr.Person;
import com.prs.crm.service.hr.CheckPlanService;
import com.prs.crm.service.impl.BaseServiceImpl;

public class CheckPlanServiceImpl extends BaseServiceImpl<CheckPlan,CheckPlanDao> implements CheckPlanService{

	@Override
	public List<CheckPlan> getAllCheckPlan() {
		// TODO Auto-generated method stub
		return this.getDao().getAllCheckPlan();
	}

	@Override
	public CheckPlan getVobject(Serializable id) {
		// TODO Auto-generated method stub
		return this.getDao().getVobject(id);
	}

	@Override
	public Collection<Person> convertIdsToPersons(Collection<Integer> ids){
		Collection<Person> persons = new ArrayList<Person>();
		for(Integer id : ids){
			Person person = new Person();
			person.setId(id);
			persons.add(person);
		}
		return persons;
	}



}
